/*
 * Copyright (C) 2003, Velocityme Partnership
 * StateValueToString.java
 *
 * Created on 13 May 2003, 09:16
 */

package com.velocityme.valueobjects;

import java.util.Comparator;

/**
 *
 * @author  Robert Crida Work
 */
public class StateValueToString extends StateValue implements Comparable {
    
    /** Creates a new instance of StateValueToString */
    public StateValueToString(StateValue p_value) {
        super(p_value);
    }
    
    public String toString() {
        return getNodeValue().getName();
    }
    
    public static String toString(StateValue p_value) {
        return p_value.getNodeValue().getName();
    }

    public int compareTo(Object o) {
        return toString().compareTo(o.toString());
    }
}
